//
//  YiAudioRecoder.h
//  Yihubang
//
//  Created by xmy on 16/10/14.
//  Copyright © 2016年 jinghao. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^RFAudioSuccessDetailBlock) (BaseModel * model);

typedef void (^RFAudioFailDetailBlock) (BaseModel * model);

@interface YiAudioRecoder : NSObject

@property (nonatomic , strong) AVAudioRecorder * recorder;

@property (nonatomic , strong) NSString * file_path;

-(void)uploadRecorderFinishedBlock:(RFAudioSuccessDetailBlock)success fail:(RFAudioFailDetailBlock)_fail;

-(void)startToRecorder;

-(void)stopToRecorder;

@end
